
<select name="cboSector">

    <option value="0">*-ALL-*</option>
    <optgroup label="FMCG:">
        <option value="1">Beverages</option>
        <option value="2">Tobacco</option>
        <option value="3">Food &amp; Dairy Products</option>
        <option value="4">Home Care Products</option>
        <option value="5">Personal Care Products</option>
    </optgroup>

    <optgroup label="Industry:">
        <option value="6">Automotive</option>
        <option value="7">Chemicals</option>
        <option value="8">Construction</option>
        <option value="9">Garment &amp; Leather</option>
        <option value="10">Wood - Furniture</option>
        <option value="11">Energy - Extraction</option>
        <option value="12">Health/Pharma manufacturers</option>
        <option value="13">Electronical &amp; Electrical Equipments</option>
    </optgroup>

    <optgroup label="Services:">
        <option value="14">Audit</option>
        <option value="15">Business/Consultancy service</option>
        <option value="16">Educational Services</option>
        <option value="17">Bank- Financial services</option>
        <option value="18">Insurance</option>
        <option value="19">IT services</option>
        <option value="20">Tourism &amp; Hospitality</option>
        <option value="21">Transports</option>
        <option value="22">Human Resources</option>
        <option value="23">Express/Courier services</option>
        <option value="24">Health/Pharma services</option>
        <option value="25">Telecommunications</option>
        <option value="26">Real Estate</option>
    </optgroup>

    <optgroup label="Trade:">
        <option value="27">Retail Trade</option>
        <option value="28">Wholesales Trade</option>
    </optgroup>

    <optgroup label="Media:">
        <option value="29">Television</option>
        <option value="30">Advertising</option>
        <option value="31">Press - Print</option>
    </optgroup>

    <optgroup label="International Organization:">
        <option value="32">NGO</option>
        <option value="33">Donor</option>				
    </optgroup>

    <optgroup label="Others:">
        <option value="34">Agriculture</option>
        <option value="35">Public Administration</option>
        <option value="36">Association</option>
        <option value="37">Embassy</option>
        <option value="38">Other</option>
    </optgroup>

    <optgroup label="Unspecified:">
        <option value="39">Unspecified</option>
    </optgroup>
</select>
<asp:Literal ID="loadSectorScript" runat="Server" />
<script language="c#" runat="server">
    void saveState()
    {
        string path_info = Request.ServerVariables["PATH_INFO"].ToUpper();
        path_info = path_info.Substring(path_info.LastIndexOf('/')+1);
        if (Request.Form["cboSector"] != null)
        {
            string sector = Request.Form["cboSector"];
            string script = "<script language=\"javascript\">";
            script += "var cbo=document.forms[0].cboSector; ";
            script += "for(var i=0;i<cbo.length;i++){";
            script += " if(cbo.options[i].value==" + sector + "){";
            script += "  cbo.selectedIndex=i; break;";
            script += " }";
            script += "}";
            script += "<";
            script += "/";
            script += "script>";
            Response.Write(script);
        }
        // is used in saveClient.aspx
        if (path_info == "SAVECLIENT.ASPX")
        {
            string script = "<script language=\"javascript\">";
            script += "var cbo=document.forms[0].cboSector; ";
            script += "cbo.options[0].text=''; ";
            script += "<";
            script += "/";
            script += "script>";
            Response.Write(script);
        }
    }
    void loadSector(string sector)
    {
        string script = "<script language=\"javascript\">";
        script += "var cbo=document.forms[0].cboSector; ";
        script += "for(var i=0;i<cbo.length;i++){";
        script += " if(cbo.options[i].value==" + sector + "){";
        script += "  cbo.selectedIndex=i; break;";
        script += " }";
        script += "}";
        script += "<";
        script += "/";
        script += "script>";
        //Response.Write(script);
        //this.RegisterClientScriptBlock("loadSector", script);
        loadSectorScript.Text = script;
    }
</script>

<%
    saveState();
%>